﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebClient
{
    public partial class order : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        private int index(List list, int id) {
            int i = -1;

            return i;
        }

        //them mon hang vao gio hang
        private void Add() {
            long id = -1;
            try {
                id = long.Parse(Request.Params["id"]);
            }
            catch { 
            }
            if (id == -1)
                return;
            List list;
            DTO.Monhang mh = new DTO.Monhang();
            if (Session["cart"] == null)
            {
                list = new List();
                
            }
            else {
                list = (List)Session["cart"];
            }
        }

        private void ThanhToan() {
            DTO.Monhang []list = new DTO.Monhang[3];
            DTO.Users item = new DTO.Users();
            WebData db = new WebData();
            db.ShoppingCart(list, item);
        }
    }
}